home *** CD-ROM | disk | FTP | other *** search
/ Max Special: Max Gallery / Max Special Gallery.iso / pc / gall8.dir / 00060_navigation scripts.ls < prev    next >
Encoding:
Text File  |  1997-04-03  |  2.7 KB  |  78 lines

  1. on setCursors
  2.   global leftFrame, rightFrame, aheadFrame, backFrame, monitor1Frame, monitor2Frame
  3.   if leftFrame = "*" then
  4.     set the cursor of sprite 5 to -1
  5.   else
  6.     set the cursor of sprite 5 to [the number of member "leftCursor", the number of member "leftCursorMask"]
  7.   end if
  8.   if rightFrame = "*" then
  9.     set the cursor of sprite 6 to -1
  10.   else
  11.     set the cursor of sprite 6 to [the number of member "rightCursor", the number of member "rightCursorMask"]
  12.   end if
  13.   if aheadFrame = "*" then
  14.     set the cursor of sprite 7 to -1
  15.   else
  16.     set the cursor of sprite 7 to [the number of member "aheadCursor", the number of member "aheadCursorMask"]
  17.   end if
  18.   if backFrame = "*" then
  19.     set the cursor of sprite 8 to -1
  20.   else
  21.     set the cursor of sprite 8 to [the number of member "backCursor", the number of member "backCursorMask"]
  22.   end if
  23.   if monitor1Frame = "*" then
  24.     set the cursor of sprite 9 to -1
  25.   else
  26.     set the cursor of sprite 9 to [the number of member "aheadCursor", the number of member "aheadCursorMask"]
  27.   end if
  28.   if monitor2Frame = "*" then
  29.     set the cursor of sprite 10 to -1
  30.   else
  31.     set the cursor of sprite 10 to [the number of member "aheadCursor", the number of member "aheadCursorMask"]
  32.   end if
  33. end
  34.  
  35. on setJumpFrames
  36.   global leftFrame, rightFrame, aheadFrame, backFrame, monitor1Frame, monitor2Frame
  37.   set theFramesCast to the frameLabel & ".JF"
  38.   set theText to the text of member theFramesCast
  39.   set leftFrame to line 1 of theText
  40.   set rightFrame to line 2 of theText
  41.   set aheadFrame to line 3 of theText
  42.   set backFrame to line 4 of theText
  43.   set monitor1Frame to line 5 of theText
  44.   set monitor2Frame to line 6 of theText
  45.   if the last char in aheadFrame = "+" then
  46.     set tempString to chars(aheadFrame, 1, the number of chars in aheadFrame - 1)
  47.     if isWindows() then
  48.       set aheadFrame to tempString & "W"
  49.     else
  50.       set aheadFrame to tempString
  51.     end if
  52.   end if
  53.   if the last char in backFrame = "+" then
  54.     set tempString to chars(backFrame, 1, the number of chars in backFrame - 1)
  55.     if isWindows() then
  56.       set backFrame to tempString & "W"
  57.     else
  58.       set backFrame to tempString
  59.     end if
  60.   end if
  61.   if the last char in monitor1Frame = "+" then
  62.     set tempString to chars(monitor1Frame, 1, the number of chars in monitor1Frame - 1)
  63.     if isWindows() then
  64.       set monitor1Frame to tempString & "W"
  65.     else
  66.       set monitor1Frame to tempString
  67.     end if
  68.   end if
  69.   if the last char in monitor2Frame = "+" then
  70.     set tempString to chars(monitor2Frame, 1, the number of chars in monitor2Frame - 1)
  71.     if isWindows() then
  72.       set monitor2Frame to tempString & "W"
  73.     else
  74.       set monitor2Frame to tempString
  75.     end if
  76.   end if
  77. end
  78.